package com.ljb.lib_http;


import java.lang.reflect.Type;

/**
 * Created by ljb on 2018/6/21.
 */
public interface HttpLoader {

    <T> void get(String url, HttpParams httpParams, Object tag, Class<T> clazz, HttpCallback<T> httpCallback);

    <T> void get(String url, HttpParams httpParams, Object tag, Type type, HttpCallback<T> httpCallback);

    <T> void post(String url, HttpParams httpParams, Object tag, Class<T> clazz, HttpCallback<T> httpCallback);

    <T> void post(String url, HttpParams httpParams, Object tag, Type type, HttpCallback<T> httpCallback);

    void stop(Object tag);

    void stopAll();

}
